#include <iostream>

using namespace std;

//创建一个User类
class User{
private:
    //属性
    int account;
    string password,email;
public:
    //构造对象
    User(int account,string password,string email=""){
        this->account=account;
        this->password=password;
        this->email=email;
        }
    //对象信息展示
    void Show(){
        cout<<"Account:"<<account<<" Password:"<<password;//账号密码必填
        //邮箱选填
        if(!email.empty()){
            cout<<"Email:"<<email;
            }
        cout<<endl;

    }
};

int main()
{
    User user1{127702,"abc127702","127702@qq.com"};
    cout<<"User1:"<<endl;
    user1.Show();
    User user2{3224418,"abc3224418"};
    cout<<"User2:"<<endl;
    user2.Show();
    return 0;
}
